package lq.demo.springbootmybatis.demo.mapper;

import lq.demo.springbootmybatis.demo.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface UserMapper {
    /**
     * 获取user
     * @return
     */
    List<User> getUser();

    /**
     * 批量添加user
     * @param userList
     * @return
     */
    int addBatchUser(List<User> userList);

    int updateUser(User user);

    int deleteUser(User user);
}
